{include file="../../../application/admin/view/public/head" /}
<div class="page-container p10">
    <form class="layui-form layui-form-pane" method="post" action="info">
        <input id="id" name="id" type="hidden" value="{$info.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">App名称：</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" lay-verify="required" value="{$info.appname}" placeholder="请输入App中文名称" name="appname">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">版本名称：</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" lay-verify="required" value="{$info.keyname}" placeholder="请输入版本名称（英文）" name="keyname">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">总开关：</label>
            <div class="layui-input-block">
                <input type="radio" name="allstatus" {if condition="$info['allstatus'] eq 1"}checked {/if} value="1" title="开启">
                <input type="radio" name="allstatus" {if condition="$info['allstatus'] eq 0"}checked {/if} value="0" title="关闭" >
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">新用户无广告天数：</label>
            <div class="layui-input-block">
                <input type="number" class="layui-input" lay-verify="required" value="{$info.no_ad_days}" placeholder="新用户无广告天数" name="no_ad_days">
            </div>
            <div class="layui-form-mid layui-word-aux">当天允许开屏广告累计显示次数</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开屏次数：</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" lay-verify="required" value="{$info.kaiping}" placeholder="请输入开屏广告次数" name="kaiping">
            </div>
            <div class="layui-form-mid layui-word-aux">当天允许开屏广告累计显示次数</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">app从后台返回开屏间隔：</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" lay-verify="required" value="{$info.kaipingtime}" placeholder="请输入app从后台返回开屏间隔（分钟）" name="kaipingtime">
            </div>
            <div class="layui-form-mid layui-word-aux">app从后台返回开屏间隔（分钟）</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开屏全屏小屏累计：</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" lay-verify="required" value="{$info.leiji}" placeholder="请输入开屏全屏小屏累计" name="leiji">
            </div>
            <div class="layui-form-mid layui-word-aux">当天app允许开屏全屏小屏累计</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开屏次数：</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" lay-verify="required" value="{$info.shouyekaiping}" placeholder="请输入开屏广告次数" name="shouyekaiping">
            </div>
            <div class="layui-form-mid layui-word-aux">当天每次进入app允许开屏广告显示次数</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">全屏次数：</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" lay-verify="required" value="{$info.shouyequanping}" placeholder="请输入全屏广告次数" name="shouyequanping">
            </div>
            <div class="layui-form-mid layui-word-aux">当天每次进入app允许全屏广告显示次数</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">小屏次数：</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" lay-verify="required" value="{$info.shouyexiaoping}" placeholder="请输入小屏广告次数" name="shouyexiaoping">
            </div>
            <div class="layui-form-mid layui-word-aux">当天每次进入app允许小屏广告显示次数</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开屏/全屏/小屏间隔：</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" lay-verify="required" value="{$info.jiange}" placeholder="请输入全屏/激励间隔时间(分钟)" name="jiange">
            </div>
            <div class="layui-form-mid layui-word-aux">当天允许展示开屏/全屏/小屏的间隔时间（开屏/全屏/小屏次数满足后会激活该间隔时间）(分钟)</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">展示方式：</label>
            <div class="layui-input-block">
                <input type="radio" name="showstatus" {if condition="$info['showstatus'] eq 0"}checked {/if} value="0" title="开屏" >
                <input type="radio" name="showstatus" {if condition="$info['showstatus'] eq 1"}checked {/if} value="1" title="全屏">
                <input type="radio" name="showstatus" {if condition="$info['showstatus'] eq 2"}checked {/if} value="2" title="小屏" >
            </div>
        </div>

        <div class="layui-form-item center">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-submit="" lay-filter="formSubmit" data-child="true">保 存</button>
            </div>
        </div>
    </form>

</div>
{include file="../../../application/admin/view/public/foot" /}

<script type="text/javascript">
    layui.use(['form', 'layer'], function () {
        // 操作对象
        var form = layui.form
                , layer = layui.layer
                , $ = layui.jquery;


    });
</script>

</body>
</html>